package com.lichuandi.entity;

import io.swagger.v3.oas.annotations.media.Schema;
// Schema替换ApiModel
@Schema(name = "用户信息",description = "用户实体类")
public class UserAPI {
   // @ApiModelProperty(value = "用户id",hidden = true)
    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
    private Long id;

    //@ApiModelProperty(value = "用户名称")
    @Schema(name = "用户名称")
    private String userName;

   // @ApiModelProperty(value = "用户密码")
   @Schema(name = "用户密码")
    private String userPassword;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public UserAPI(Long id, String userName, String userPassword) {
        this.id = id;
        this.userName = userName;
        this.userPassword = userPassword;
    }

    public UserAPI() {
    }
}
